package com.ruoyi.logistics.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.logistics.domain.Center;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class ExplicitInfo {
    private static final long serialVersionUID = 1L;

    /** 物流详细信息ID */
    private Long id;

    /** 物流信息ID */
    @Excel(name = "物流信息ID")
    private Long logisticsId;

    /** 物流单号 */
    @Excel(name = "物流单号")
    private String logsNumber;

    /** 物流信息改变时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "物流信息改变时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date changeTime;

    /** 运输中状态(0:已离开  1:已到达) */
    @Excel(name = "运输中状态(0:已离开  1:已到达)")
    private String transitStatus;

    /** 发往地址ID */
    @Excel(name = "发往地址ID")
    private Long toAddress;

    /** 当前所在地址ID */
    @Excel(name = "当前所在地址ID")
    private Long currentAddress;

    /** 物流状态(0:下单  1:已发货  2:已揽件  3:运输中  4:派送中  5:待取件  6:已签收) */
    @Excel(name = "物流状态(0:下单  1:已发货  2:已揽件  3:运输中  4:派送中  5:待取件  6:已签收)")
    private String status;

    /** 发往地址*/
    private ExplicitCenter toAddressCenter;

    /** 当前所在地址*/
    private ExplicitCenter currentAddressCenter;

    public ExplicitCenter getToAddressCenter() {
        return toAddressCenter;
    }

    public void setToAddressCenter(ExplicitCenter toAddressCenter) {
        this.toAddressCenter = toAddressCenter;
    }

    public ExplicitCenter getCurrentAddressCenter() {
        return currentAddressCenter;
    }

    public void setCurrentAddressCenter(ExplicitCenter currentAddressCenter) {
        this.currentAddressCenter = currentAddressCenter;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLogisticsId(Long logisticsId)
    {
        this.logisticsId = logisticsId;
    }

    public Long getLogisticsId()
    {
        return logisticsId;
    }
    public void setLogsNumber(String logsNumber)
    {
        this.logsNumber = logsNumber;
    }

    public String getLogsNumber()
    {
        return logsNumber;
    }
    public void setChangeTime(Date changeTime)
    {
        this.changeTime = changeTime;
    }

    public Date getChangeTime()
    {
        return changeTime;
    }
    public void setTransitStatus(String transitStatus)
    {
        this.transitStatus = transitStatus;
    }

    public String getTransitStatus()
    {
        return transitStatus;
    }
    public void setToAddress(Long toAddress)
    {
        this.toAddress = toAddress;
    }

    public Long getToAddress()
    {
        return toAddress;
    }
    public void setCurrentAddress(Long currentAddress)
    {
        this.currentAddress = currentAddress;
    }

    public Long getCurrentAddress()
    {
        return currentAddress;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("logisticsId", getLogisticsId())
                .append("logsNumber", getLogsNumber())
                .append("changeTime", getChangeTime())
                .append("transitStatus", getTransitStatus())
                .append("toAddress", getToAddress())
                .append("currentAddress", getCurrentAddress())
                .append("status", getStatus())
                .toString();
    }
}
